package com.jiegui.payinterface.service;


import com.jiegui.payinterface.bean.DrawCashBean;
import com.jiegui.payinterface.bean.InterfacePaymentBean;
import com.jiegui.payinterface.bean.PaymentRes;
import com.jiegui.payinterface.bean.RefundBean;
import com.jiegui.pay.domain.InterfaceRequest;

import java.util.Map;

/**
 * 付款服务
 *
 * @author wuqicheng
 * @date 2021/3/10
 */
public interface InterfacePayment {

    /**
     * 支付
     */
    PaymentRes pay(InterfacePaymentBean interfacePaymentBean);

    /**
     * 查询
     */
    PaymentRes query(Map<String, String> map);

    /**
     * 退款
     */
    PaymentRes refund(RefundBean refundBean);

    /**
     * 付款完成
     */
    void complete(Map<String, String> map, InterfaceRequest interfaceRequest);

    /**
     * 提现
     */
    PaymentRes drawcash(DrawCashBean bean);

    /**
     * 企业付款到零钱状态查询
     */
    PaymentRes queryDrawCash(DrawCashBean bean);

}
